package com.sky.orangehireserver.modules.enterprise.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

/**
 * 企业员工密码重置请求DTO
 * 
 * @author sky
 */
@Data
@Schema(description = "企业员工密码重置请求DTO")
public class EnterpriseEmployeePasswordResetDTO {

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1")
    private Long id;

    /**
     * 新密码
     */
    @Size(min = 6, max = 20, message = "密码长度必须在6-20个字符之间")
    @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{6,20}$", 
             message = "密码必须包含字母和数字，长度6-20位")
    @Schema(description = "新密码", example = "123456a")
    private String newPassword;
}